package com.wu.mapper;

import com.wu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    public List<User> findAll(int page,int limit);

    public int count();

    public User findById(long id);

    public void save(User user);

    public void update(User user);

    public void deleteById(long id);
}
